
/**
 * Perform the element default action.
 *
 * @param {JSEvent} event the event that triggered the action
 *
 * @properties={typeid:24,uuid:"8BAAE4F9-8769-4EC9-83D7-680AF970E2AF"}
 * @AllowToRunInFind
 */
function pdf(event) {
	globals.metodoPdf('rpt_proveedor_alq_a_cobrar', 'Alquileres a Cobrar', true)
}

/**
 * @properties={typeid:24,uuid:"E02724DC-9A3E-4C24-B09A-D04BE26046CD"}
 */
function vistaPrevia() {
	controller.showPrintPreview(false)
}

/**
 * Callback method for when form is shown.
 *
 * @param {Boolean} firstShow form is shown first time after load
 * @param {JSEvent} event the event that triggered the action
 *
 * @properties={typeid:24,uuid:"E0086796-1B5E-42ED-87E3-03EB2984F9A0"}
 * @AllowToRunInFind
 */
function onShow(firstShow, event) {
	controller.find()
	
	alquiler_monto = '>0'
	
	if (controller.search() == 0)
	{
		globals.DIALOGS.showWarningDialog('Aviso','No hay resultados','OK')
		return 
	}
}
